package com.kaochong.xcx.service.impl;

import com.kaochong.xcx.dao.UserInfoMapper;
import com.kaochong.xcx.entity.UserInfo;
import com.kaochong.xcx.service.UserInfoService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author han
 * @date 2018-08-08 10:20
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {
	
	@Autowired
	UserInfoMapper userInfoMapper;
	
	@Override
	public UserInfo selectById(String targetMarkId) {
		return userInfoMapper.selectByPrimaryKey(targetMarkId);
	}
	
	@Override
	public int update(UserInfo userInfo) {
		return userInfoMapper.updateByPrimaryKey(userInfo);
	}
	
	@Override
	public List<UserInfo> findByUserId(Long userId) {
		return userInfoMapper.findByUserId(userId);
	}
}
